<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends MY_Controller {
  function __construct() {
    $init = array('check_login', 'check_permission');
    parent::__construct($init);
  }

  public function index() {
    if (empty($this->init_invoke_results['check_login'])) {
      redirect("admin/login");
    }
    $data = array(
      'images_url' => $this->images_url,
      'css_images_url' => $this->css_images_url,
      'css_url' => $this->css_url,
    );
    $this->load->view('admin/index', $data);
  }
}
// END Index class

/* End of file Index.php */
/* Location: ./application/controllers/admin/Index.php */
